<?php

require '../../framework/bootstrap.inc.php';
global $_GPC;
$data = file_get_contents("php://input");
$data = json_decode($data, true);
$urlInfo = pathinfo($data['uri']);
$ext = $urlInfo['extension'];//获取文件后缀名
$app = $data['app'];
$stream = $data['stream'];
$addData[$ext] = $data['uri'];
$addData['duration'] = ceil($data['duration']);
$addData['start_time'] = $data['start_time'];
$addData['stop_time'] = $data['stop_time'];
$addData['domain'] = $data['domain'];
pdo_update("goouc_class_live_record", $addData, array('stream' => $stream, 'app' => $app));
